package net.betou.cms.dao.main.impl;

import net.betou.cms.dao.main.ContentExtDao;
import net.betou.cms.entity.main.ContentExt;
import net.betou.common.hibernate3.HibernateBaseDao;

import org.springframework.stereotype.Repository;

@Repository
public class ContentExtDaoImpl extends HibernateBaseDao< ContentExt, Integer > implements ContentExtDao{
	public ContentExt findById( Integer id ) {
		ContentExt entity = get( id );
		return entity;
	}

	public ContentExt save( ContentExt bean ) {
		getSession( ).save( bean );
		return bean;
	}

	@Override
	protected Class< ContentExt > getEntityClass( ) {
		return ContentExt.class;
	}
}